Author Avatar
Xyinkl 8月 15, 2023

Git log格式美化.md

git config –global alias.lm “log –no-merges –color –date=format:’%Y-%m-%d %H:%M:%S’ –author=’Xyinkl’ –pretty=format:’%Cred%h%Creset -%C(yellow)%d%Cblue %s %Cgreen(%cd) %C(bold blue)<%an>%Creset’ –abbrev-commit”

git config –global alias.lms “log –no-merges –color –stat –date=format:’%Y-%m-%d %H:%M:%S’ –author=’Xyinkl’ –pretty=format:’%Cred%h%Creset -%C(yellow)%d%Cblue %s %Cgreen(%cd) %C(bold blue)<%an>%Creset’ –abbrev-commit”

git config –global alias.ls “log –no-merges –color –graph –date=format:’%Y-%m-%d %H:%M:%S’ –pretty=format:’%Cred%h%Creset -%C(yellow)%d%Cblue %s %Cgreen(%cd) %C(bold blue)<%an>%Creset’ –abbrev-commit”

git config –global alias.lss “log –no-merges –color –stat –graph –date=format:’%Y-%m-%d %H:%M:%S’ –pretty=format:’%Cred%h%Creset -%C(yellow)%d%Cblue %s %Cgreen(%cd) %C(bold blue)<%an>%Creset’ –abbrev-commit”